package com.guoyh.bilbase.widget.state

import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.widget.TextView
import com.guoyh.bilbase.R
import com.zy.multistatepage.MultiState
import com.zy.multistatepage.MultiStateContainer

open class MStateLoading :MultiState(){
    override fun onCreateMultiStateView(
        context: Context,
        inflater: LayoutInflater,
        container: MultiStateContainer
    ): View {
        return inflater.inflate(R.layout.state_loading_layout, container, false)
    }


    private lateinit var tvState: TextView

    override fun onMultiStateViewCreate(view: View) {
        tvState = view.findViewById(R.id.mStateTv)

    }

    fun setTv(msg:String){
        tvState.setText(msg)
    }




    override fun enableReload() = false

}